package com.example.demo.repository;

import com.example.demo.entity.Charges;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface ChargesRepository extends JpaRepository<Charges,Integer> {

    @Query(value = "select * from charges where activity_id = %?1;",nativeQuery = true)
    Charges findByActivityId(Integer activityId);
}
